home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / LDB171.ARJ / EXAMP702.CPP < prev    next >
C/C++ Source or Header  |  1992-05-12  |  371b  |  18 lines

  1. // examp702.cpp - link with mutual.obj and binder.obj
  2.  
  3. #include "mutual.hpp"
  4.  
  5. #define ID_test  5
  6.  
  7. char * test(char * s1, char *s2)
  8.     { cout << s1; return s2; }
  9.  
  10. main()  {
  11.     RegisterFunction(ID_test,test);
  12.     cout <<(*ID2fnC(char *(*)(char *, char *),
  13.         fnC2ID(test)))
  14.         ("\nGoodbye persistence headaches!\n",
  15.         "Hello streamable functions!\n");
  16.     return 0;
  17. }
  18.